<!-- 自适应高度 -->
<div class="form-page-bg" appDebounceClick (debounceClick)="closeClick()" *ngIf="tagData">
  <div class="section">
    <div class="title" [ngStyle]="titleStyle">{{title}}</div>
    <div class="content">
      <p class="sub-title">{{subTitle}}</p>
      <div class="login-form" *ngIf="this.formTagData&&this.formTagData.data" appDebounceClick (debounceClick)="formClick($event)">
        <form [formGroup]="formGroup">
          <List *ngFor="let item of this.formTagData.data.htmlObj,let i = index" [ngSwitch]="item.formType">
            <ng-container *ngSwitchCase="'mobileInput'">
              <ion-item class="post-item" lines="inset">
                <ion-input type="text" [(ngModel)]="item.value" [placeholder]="item.placeHolder" maxLength="11"
                  [formControlName]="item.formKey">
                </ion-input>
                <button class="vccode" *ngIf="time>-1" [disabled]="time>-1"
                  [ngClass]="{'lightgrey':time>-1}">({{time}})重新获取</button>
                <button [ngClass]="{'lightgrey':formGroup.get('account_thos__mobile').errors}" class="vccode"
                  *ngIf="time===-1" appDebounceClick (debounceClick)="getVC(formGroup.get('account_thos__mobile').errors)">获取验证码</button>
              </ion-item>
            </ng-container>
            <ng-container *ngSwitchCase="'codebut'">
              <ion-item class="post-item" lines="inset">
                <ion-input type="text" [(ngModel)]="item.value" [placeholder]="item.placeHolder" maxLength="6"
                  [formControlName]="item.formKey">
                </ion-input>
              </ion-item>
            </ng-container>
            <ng-container *ngSwitchCase="'textInput'">
              <ion-item class="post-item" lines="inset">
                <ion-input type="text" [(ngModel)]="item.value" [placeholder]="item.placeHolder" maxLength="6"
                  [formControlName]="item.formKey">
                </ion-input>
              </ion-item>
            </ng-container>
            <ng-container *ngSwitchCase="'passwordInput'">
              <ion-item class="post-item" lines="inset">
                <ion-input required type="{{open?'text':'password'}}" [(ngModel)]="item.value"
                  [placeholder]="item.placeHolder" [formControlName]="item.formKey">
                </ion-input>
                <span appDebounceClick (debounceClick)="item.value=''"
                  [ngClass]="{'close_r50': item.value!='','hideClose_r50':item.value===''}"></span>
                <span class="eye" appDebounceClick (debounceClick)="open=!open" [ngClass]="{'eyeshow':open}"></span>
              </ion-item>
            </ng-container>
          </List>
          <ng-container *ngIf="submitBtn">
            <button class="btn-58" type="submit" appDebounceClick (debounceClick)="submitForm()">{{submitBtn.data[0].label}}</button>
          </ng-container>
        </form>
      </div>
    </div>
  </div>
</div>